﻿@model HRWEB.Models.DeptEmployeeModel
@using HRWEB.HtmlHelpers
@{
    ViewBag.Title = "科室管理";
}
<h2 style="color:Red">@TempData["dmMessage"]</h2>
@if (Model.Depts.Count > 1)
{
    <h2>点击选择要查看的科室</h2>
    
    foreach (var t in Model.Depts)
    {
            @Html.ActionLink(t.FName, "ChangeViewMode", new { deptCode = t.FDeptCode, dispAll = Model.DispAll })  @:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        }
        
}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Html.ActionLink(Model.DispAllButtonText, "ChangeViewMode", new { deptCode = Model.SelectedDeptCode, dispAll = !Model.DispAll })
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Html.ActionLink("导出Excel", "Export", new { deptCode = Model.SelectedDeptCode, dispAll = Model.DispAll })

<table class="detail-table">
    @Html.GetTableRow(new string[] { "科室", "姓名", "工作编码", "修改信息内容","是否确认" })

@foreach (var emp in Model.Employees)
{
    <tr><td>@Model.SelectedDeptName</td><td>@emp.FName</td><td>@emp.FPublicID</td><td style="width:500px">@emp.Feedback()</td><td>@emp.IsSubmitted()</td></tr>
}
</table>
